import { request } from './request'
import qs from 'qs'

export function getQiniuToken() {
  return request({
    url: '/resume/qiniutoken/'
  })
}

export function addResume(data) {
  return request({
    method: 'post',
    url: 'resume/addResume/',
    data: qs.stringify(data)
  })
}

export function deleteResume(params) {
  return request({
    url: '/resume/deleteResume/',
    params: params
  })
}

export function sendMessage(data) {
  return request({
    method: 'post',
    url: '/resume/addMessage/',
    data: qs.stringify(data)
  })
}

export function getResumeList(params) {
  return request({
    url: '/resume/getResumeList/',
    params: params
  })
}

export function getResumeComents(params) {
  return request({
    url: '/resume/getResumeComments/',
    params: params
  })
}

export function deleteComments(params) {
  return request({
    url: '/resume/deleteComment/',
    params: params
  })
}
